package com.nlp.server;

import com.nlp.common.swagger.annotation.EnableCustomSwagger2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * nlp启动类
 * @author shiliuyinzhen
 */
@EnableAsync //添加异步处理
@EnableScheduling //添加定时任务
@EnableCustomSwagger2
@SpringBootApplication
@ComponentScan(basePackages = "com.nlp.**")
public class NLPApplication {

    public static void main(String[] args) {
        SpringApplication.run(NLPApplication.class);
        System.out.println("NLP 服务器启动成功~");
    }
}